package com.bw.network_sdk;

import com.bw.network_sdk.interceptor.SignInterceptor;
import com.bw.network_sdk.interceptor.TokenInterceptor;

import okhttp3.OkHttpClient;
import retrofit2.Retrofit;

public class TokenSignRetrofitImpl extends BaseHttpRetrofitImpl{
    @Override
    protected long readtime() {
        return 30;
    }

    @Override
    protected long connectime() {
        return 30;
    }

    @Override
    protected long writetime() {
        return 30;
    }

    @Override
    public Retrofit createRetrofit() {
        TokenInterceptor tokenInterceptor = new TokenInterceptor();
        SignInterceptor signInterceptor = new SignInterceptor();
        OkHttpClient.Builder builder = createokHttpBuilder();
        builder.addInterceptor(tokenInterceptor);
        builder.addInterceptor(signInterceptor);
        return createRetrofit(builder.build());
    }
}
